#include<iostream>
#include <iomanip>
using namespace std;
inline double square(double x)
{
	return x * x;
}
double power(double base, int exponent = 2)
{
	double result = 1.0;
	for (int i = 0; i < exponent; i++) {
		result *= base;
	}
	return result;
}double calc(double a, double b, char op)
{
	if (op == '+')
	{
		return a + b;
	}
	else if (op == '-')
	{
		return a - b;
	}
	else if (op == '*')
	{
		return a * b;
	}
	else if (op == '/')
	{
		if (b == 0)
		{
			cout << "Error: divide by zero" << endl;
		}
		return a / b;
	}
}
double calc(int a, int b, char op)
{
	if (op == '+')
	{
		return a + b;
	}
	else if (op == '-')
	{
		return a - b;
	}
	else if (op == '*')
	{
		return a * b;
	}
	else if (op == '/')
	{
		if (b == 0)
		{
			cout << "Error: divide by zero" << endl;
		}
		return a / b;
	}
}
int main()
{
	double x, y;
	char op;
	cin >> x >> y >> op;
	cout << fixed << setprecision(2);
	cout << "square("<< x << ")" <<"="<< square(x) << endl;
	cout << "power(" << x << ",3)" <<"="<< power(x, 3) << endl;
	double result = calc(x, y, op);
	if (!(op == '/' && y == 0)) {
		cout << x << " " << op << " " << y << " = " << result << endl;
	}
	return 0;
}